.class public Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;
.super Lcom/hyphenate/chat/adapter/EMABase;

# interfaces
.implements Lcom/superrtc/sdk/RtcConnection$Listener;


# instance fields
.field states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMABase;-><init>()V

    return-void
.end method


# virtual methods
.method public finalize()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeFinalize()V

    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    return-void
.end method

.method public declared-synchronized getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method native nativeFinalize()V
.end method

.method native nativeOnCandidateCompleted()V
.end method

.method native nativeOnClosed()V
.end method

.method native nativeOnConnected()V
.end method

.method native nativeOnConnectionSetup()V
.end method

.method native nativeOnDisconnected()V
.end method

.method native nativeOnError()V
.end method

.method native nativeOnLocalCandidate(Ljava/lang/String;)V
.end method

.method native nativeOnLocalSdp(Ljava/lang/String;)V
.end method

.method native nativeOnStats(Lcom/hyphenate/chat/adapter/EMAChannelStatistics;)V
.end method

.method public onCandidateCompleted()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnCandidateCompleted()V

    return-void
.end method

.method public onClosed()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnClosed()V

    return-void
.end method

.method public onConnected()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnConnected()V

    return-void
.end method

.method public onConnectionsetup()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnConnectionSetup()V

    return-void
.end method

.method public onDisconnected()V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnDisconnected()V

    return-void
.end method

.method public onError(Ljava/lang/String;)V
    .locals 0

    invoke-virtual {p0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnError()V

    return-void
.end method

.method public onLocalCandidate(Ljava/lang/String;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnLocalCandidate(Ljava/lang/String;)V

    return-void
.end method

.method public onLocalSdp(Ljava/lang/String;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnLocalSdp(Ljava/lang/String;)V

    return-void
.end method

.method public onStats(Lcom/superrtc/sdk/RtcConnection$RtcStatistics;)V
    .locals 2

    monitor-enter p0

    :try_start_0
    iput-object p1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget-object v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->connectionType:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setConnType(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localVideoRtt:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setLocalVideoRtt(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteWidth:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteVideoWidth(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteHeight:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteVideoHeight(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localEncodedFps:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setLocalVideoFps(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteFps:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteVideoFps(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localVideoPacketsLost:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setLocalVideoPacketsLost(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteVideoPacketsLost:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteVideoPacketsLost(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localVideoActualBps:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setLocalVideoActualBps(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteAudioBps:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteAudioBps(I)V

    iget-object v1, p0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->states:Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    iget v1, v1, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteVideoBps:I

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAChannelStatistics;->setRemoteVideoBps(I)V

    invoke-virtual {p0, v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->nativeOnStats(Lcom/hyphenate/chat/adapter/EMAChannelStatistics;)V

    return-void

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method
